<template>
	<!--<div> this is header </div>-->
	<div class="header">
		<div class="header-left">
			<span class="iconfont">&#xe624;</span>
		</div>
		<div class="header-input">
			<span class="iconfont">&#xe632;</span>
			输入城市/景点点/游玩主题</div>
		<router-link to="/City">
			<div class="header-right">
			{{this.city}}
			<span class="iconfont">&#xe62f;</span>
		</div>
		</router-link>

	</div>
</template>

<script>
import {mapState, mapGetters} from 'vuex'
export default {
  name: 'HomeHeader',
  computed: {
    ...mapState(['city']),
    ...mapGetters(['doubleCity'])
  }
//	props:{
////		city:String
//	}
}
</script>

<style lang="stylus" scoped>
 /*@import '~styles/varibles.less'; /* 加上分号*/
	@import '~styles/varibles.styl'
	.header
		display:flex
		line-height:.86rem
		background:$bgColor
		color:#fff
		align-items:center
		font-size:.3rem
		.header-left
			width:.64rem
			float:left
			text-align:center
			padding:0 .2rem
		.header-input
			flex:1
			height:.64rem
			line-height:.64rem
			/*margin-top:.12rem*/

			padding-left:.2rem
			background:#fff;
			border-radius:.1rem
			color:#ccc

		.header-right
			color:#fff
			/*width:1.24rem*/
			float:right
			text-align:center
			padding:0 .2rem

</style>
